home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 028a / repzip.zip / REPZIP.DOC < prev    next >
Text File  |  1991-02-24  |  5KB  |  135 lines

  1. REPZIP by Lindsay McCann.  February 24, 1991.
  2.  
  3. -----------------------------------------------------------------------
  4. There is some important information at the end of this document.
  5. -----------------------------------------------------------------------
  6.  
  7. ------------
  8. Introduction        (Documentation is very brief & worth reading)
  9. ------------
  10.  
  11. REPZIP is intended to permit the use of repeated operations with PKZIP.
  12. It is a Turbo C program that uses the findfirst() and findnext() functions
  13. to repeatedly invoke PKZIP for every filename that matches the file
  14. specification provided by the REPZIP user.  Of course, you get the
  15. source code, the executable file, and the object file for FREE.
  16.  
  17.  
  18. ---------------------
  19. Setting Zipfile Dates
  20. ---------------------
  21.  
  22. For example, you might wish to set the date of every zipfile in a
  23. directory to the most recently dated file within the zipfile.  This is
  24. useful if you download ZIP files from Bulletin Board Systems which often
  25. bear file dates that do not reflect the date of the files found within
  26. the archive.  A very old version of backgammon in BASIC, created in 1984
  27. may have be uploaded recently.  It would be handy to attach the date the
  28. game was created to the date of the zipfile itself.  In that way, the date
  29. of the zipfile gives you a good idea of how recent its contents truly are.
  30.  
  31. With PKZIP you can accomplish this on a file by file basis:
  32.  
  33. <C:\TELIX\DOWN> PKZIP -o -d <zipfile name> abcdefgh.ijk
  34.  
  35. where "abcdefgh.ijk" is the name of a file that does not exist in the zipfile.
  36.  
  37. To make it easier to do this to many files at once, use REPZIP.  You run
  38. REPZIP exactly as you would PKZIP.  All the switches and filenames are
  39. passed directly through to PKZIP via the Turbo C spawnv() function.  Instead
  40. of providing a zipfile name you may specify a wildcard.  The example above
  41. could be applied to an entire directory of zipfiles as follows:
  42.  
  43. <C:\TELIX\DOWN> REPZIP -o -d *.ZIP abcdefgh.ijk
  44.  
  45. (Aside: this technique is thwarted if there is a very recent BBS advertisement
  46. file in the zipfile as the date of the advertisement may be attached to
  47. the archive).
  48.  
  49.  
  50. -----------------------------------------
  51. Removing BBS Advertisements from Zipfiles
  52. -----------------------------------------
  53.  
  54. You can use REPZIP to remove BBS advertisement files from every zipfile
  55. in a directory.  This is done one file at a time using PKZIP as follows:
  56.  
  57. <C:\TELIX\DOWN> PKZIP -d <zipfile name> readme.ros sound.msg ads_bbs.txt
  58.  
  59. Using REPZIP, you would type:
  60.  
  61. <C:\TELIX\DOWN> REPZIP -d *.ZIP readme.ros sound.msg ads_bbs.txt
  62.  
  63. This will remove from every zipfile in a directory all files with the
  64. name "readme.ros", "sound.msg", and "ads_bbs.txt".  Incidentally, these
  65. are three commonly occurring BBS advertisement files.
  66.  
  67.  
  68. -------------------------------------------------
  69. Removing or Adding Comments to a list of Zipfiles
  70. -------------------------------------------------
  71.  
  72. You might also want to remove all zipfile comments from every zipfile in
  73. a directory.  To do this on a file by file basis using PKZIP:
  74.  
  75. <C:\TELIX\DOWN> PKZIP -z <zipfile name>
  76.  
  77. REPZIP can apply this command to every zipfile in the current directory:
  78.  
  79. <C:\TELIX\DOWN> REPZIP -z *.ZIP
  80.  
  81. You can improve on this by using input redirection as follows:
  82.  
  83. <C:\TELIX\DOWN> REPZIP -z *.ZIP < RETURNS.TXT
  84.  
  85. where RETURNS.TXT is a file with nothing but 300 or so carriage returns.
  86. This will cause PKZIP to take its input from RETURNS.TXT rather than from
  87. the keyboard thereby saving you the trouble of pressing the <Enter> key
  88. each time you want to delete a zipfile comment.
  89.  
  90.  
  91. -----
  92. Notes
  93. -----
  94.  
  95. REPZIP assumes a default file extension for the zipfile of .ZIP (naturally).
  96. You may specify another extension or use wildcards to specify a range of
  97. other extensions for example:
  98.  
  99. <C:\TELIX\DOWN> REPZIP -v *.*
  100.  
  101. will give you a "view" of every file in the directory whether or not it ends
  102. in .ZIP.  Naturally, if the file is not a zipfile, PKZIP will not be able to
  103. process it.
  104.  
  105. REPZIP (for now) will only operate on Zipfiles in the current directory.
  106.  
  107. To halt program execution, press and hold Ctrl-C or Press Ctrl-Break repeatedly
  108.  
  109.  
  110. _________________  DIRE WARNING FOLLOWS   __________________________________
  111.  
  112. You get this software free.  You use it at your OWN risk.  I do not
  113. make any representations or warranties as to its fitness for use by
  114. you.  I have made my best efforts to ensure the software works well
  115. and will be useful to you however, I owe you NO DUTY OF CARE.
  116.  
  117. USE THIS SOFTWARE AT YOUR OWN RISK OR DO NOT USE IT AT ALL !
  118.  
  119. ____________________________________________________________________________
  120.  
  121. Author:        Lindsay McCann
  122.         200 Balliol Street #1111
  123.         Toronto, ON  M4S 1C6
  124.         (416) 489-7426
  125.     
  126. Hangouts:    Compuserve 73770,1515
  127.         RoseMedia
  128.         Canada Remote Systems
  129.  
  130. If you are interested in this program or can suggest some enhancements, I
  131. would like to hear from you.
  132.  
  133. ----------------------------------------------------------------------------
  134. End of REPZIP.DOC
  135.